pathfinder object
This method sets up the pathfinder for use with a map of a given size.
bool create_map(int x_size, int y_size)
Parameters:
x_size
The width of the map, in squares.
y_size
The height of the map, in squares.
Return value:
true on success, false on failure.
Remarks:
Before pathfinding can begin, the map needs to be set up. This method allocates resources for the entire map, which are used internally while searching.
This method must not be invoked from within the user callback.
The maximum size of a map is 10000 by 10000 squares.
Example:
See the main pathfinder chapter and the pathfinding tutorial.